package com.aliyun.messagemgt.dto.vo;


import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author
 * @date
 */
public class PushChannelVO {

    private Integer pushChannelId;

    private String description;

    private Integer channelType;

    public Integer getPushChannelId() {
        return pushChannelId;
    }

    public PushChannelVO setPushChannelId(Integer pushChannelId) {
        this.pushChannelId = pushChannelId;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public PushChannelVO setDescription(String description) {
        this.description = description;
        return this;
    }

    public Integer getChannelType() {
        return channelType;
    }

    public PushChannelVO setChannelType(Integer channelType) {
        this.channelType = channelType;
        return this;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    @Override
    public int hashCode() {
        int result = 17;
        result = result * 31 + pushChannelId;
        result = result * 31 + description.hashCode();
        result = result * 31 + channelType;

        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == this){
            return true;
        }
        if(!(obj instanceof PushChannelVO)){
            return false;
        }
        PushChannelVO pushChannelVO = (PushChannelVO) obj;
        return pushChannelVO.pushChannelId.equals(pushChannelId) && pushChannelVO.description.equals(description) && pushChannelVO.channelType.equals(channelType);
    }

}
